<script setup lang="ts">
import MyHead from './04_head.vue'
import {ref } from "vue";



let count = ref('0')
let list = ref([{username:'123',age:'123'}]);

let getData = (payload:string) => {
  console.log(payload)
}


</script>

<template>
  <div>04_组合式api父子通信与ts.vue，{{list}}
    <my-head :count = "count" @get-data="getData" :list="list"></my-head>
  </div>
</template>

<style scoped>

</style>